package com.zfk.framework.models;

import lombok.Getter;
import lombok.Setter;
import lombok.ToString;

/**
 * API响应数据类，包含响应体和状态码等信息
 */
@Getter
@Setter
@ToString
public class ResponseData {
    /**
     * 响应体内容
     */
    private String body;
    
    /**
     * 响应状态码
     */
    private int statusCode;
    
    /**
     * 响应头信息（可选）
     */
    private String headers;
    
    /**
     * 响应时间（毫秒）
     */
    private long duration;

    //构造函数
    public ResponseData() {
    }
    public ResponseData(String body, int statusCode, long duration, String headers) {
        this.body = body;
        this.statusCode = statusCode;
        this.duration = duration;
        this.headers = headers;
    }
}